<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateNewUserHostPoolTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('new_user_host_pool', function (Blueprint $table) {
            $table->smallIncrements('id');
            $table->integer('user_id')->default(0)->comment('主播ID');
            $table->tinyInteger('gender')->default(-1)->comment('主播性别');
            $table->timestamps();
            $table->tinyInteger('flag')->default(1)->comment('1-有效，0-无效');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('new_user_host_pool');
    }
}
